package com.itheima.service;

import com.itheima.domain.Record;
import com.itheima.domain.RecordSelective;
import entity.PageResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with IntelliJ IDEA.
 * @Author: auuuu4
 * @Date: 2024/07/10/9:47
 * @Description:
 */
public interface RecordService {
    PageResult selectAllRecordsByPage(Integer pageNum, Integer pageSize);

    PageResult selectRecordByBorrower(Integer pageNum,Integer pageSize,String name);

    @Transactional
    int insertRecord(Record record);

    PageResult selectRecordsSelective(Integer pageNum,Integer pageSize,RecordSelective selective);
}
